home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 19 / Mac Magazin and MacEasy Magazine CD - Issue 19.iso / Online / HttpServerƒ / •Mac_Classes / TContext.h < prev    next >
Text File  |  1996-01-03  |  1KB  |  43 lines

  1. //    TContext.h - Macintosh Task Context class object
  2. // 
  3. // Apple Macintosh Developer Technical Support
  4. // Written by:  Vinne Moscaritolo
  5. //
  6. //  Copyright (work in progress)  Apple Computer, Inc All rights reserved.
  7. //
  8. // You may incorporate this sample code into your applications without
  9. // restriction, though the sample code has been provided "AS IS" and the
  10. // responsibility for its operation is 100% yours.  However, what you are
  11. // not permitted to do is to redistribute the source as "DSC Sample Code"
  12. // after having made changes. If you're going to re-distribute the source,
  13. // we require that you make it clear in the source that the code was
  14. // descended from Apple Sample Code, but that you've made changes.
  15. // 
  16.  
  17. #ifndef _H_TCONTEXT
  18. #define _H_TCONTEXT
  19.  
  20. #include <MWException.h>
  21.  
  22. // ---------------------------------------------------------------------------
  23. //     TContext
  24. // ---------------------------------------------------------------------------
  25. // Save and restore thread context
  26.  
  27. class TContext
  28. {    
  29.     public:
  30. // HIGH LEVEL FUNCTIONS
  31.             TContext();
  32.          void Save();
  33.         void Restore();
  34.         
  35.         
  36. // PRIVATE FIELDS
  37.     private:
  38.     ExceptionState    fExceptionState;                // C++ exception runtime support
  39.     char            fCatchBuffer[CATCH_BUFSIZE];    // buffer for thrown object
  40. };
  41.  
  42. #endif
  43.